package com.cos.emp.dao;

import com.cos.emp.entity.Emp;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author: COS
 * @time: 2022/9/30 14:18
 * @description:
 */
public interface EmpMapper {
    List<Emp> getAll();

    Emp getEmpByEname(@Param("ename") String ename);

    List<Emp> getEmpByKey(Map<String, String> emps);

    int delEmp(@Param("eno") Integer eno);

    int addEmp(Emp emp);

    Emp getEmpByEno(@Param("eno") Integer eno);

    int updateEmp(Emp emp);

}
